<!-- INCLUDE sv_overall_header.html -->
	
<script language="Javascript">

function read_news(user_id, news_id)
{
	<!-- IF IN_FB_IFRAME -->
	xmlhttpPost('../query.php', user_id, news_id);
	<!-- ELSE -->
	xmlhttpPost('query.php', user_id, news_id);
	<!-- ENDIF -->	
	
	return false;
}


function xmlhttpPost(strURL, user_id, news_id) 
{
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) 
	{
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) 
	{
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() 
	{
        if (self.xmlHttpReq.readyState == 4)
		{
			HideContent('news_id_' + news_id);
        }
    }
    self.xmlHttpReq.send(getquerystring(user_id, news_id));
}

function getquerystring(user_id, news_id) 
{
    qstr = 'mode=read_news&user_id=' + user_id + '&news_id=' + news_id;  // NOTE: no '?' before querystring
    return qstr;
}

function HideContent(d) 
{
	document.getElementById(d).style.display = "none";
}

</script>




<!-- BEGIN corp_list -->
<div class="panel" > 
<div class="inner"><span class="corners-top"><span></span></span> 
<h2>
	<!-- IF  corp_list.TAIEX_MARKET -->
	{L_SV_TAIEX_MARKET}{L_SV_RELATED_NEWS}
	<!-- ELSE -->
	{corp_list.CORP_NAME} {L_SV_RELATED_NEWS}&nbsp  
	<!-- ENDIF -->
</h2> 
</div>

<p>
<!-- BEGIN news -->
<!-- Related Corp ID: {corp_list.news.RELATED_CORP_ID} NEWS_CNT:{corp_list.news.NEWS_CNT}-->
<span id="news_id_{corp_list.news.NEWS_ID}" style="display:block;">

<a 	href="javascript: void(0)"  
	title="{L_SV_OPEN_NEWS_IN_NEW_WINDOW}"
	onClick="read_news({corp_list.news.USER_ID}, {corp_list.news.NEWS_ID});window.open('{corp_list.news.LINK}', '_blank');">
	{corp_list.news.TITLE}
	<img src="{T_IMAGES_PATH}newwindow.png"  width="12" height="12" class='edit_note_icon'/> 
</a>
&nbsp;&nbsp;	
<span style="color:grey">   - {corp_list.news.RETRIEVE_TIME}</span>
<BR>
{corp_list.news.SNIPPET} <BR> <BR>
</span>
<!-- END news -->
</p>
	
</div>
<!-- END corp_list -->

<!-- INCLUDE sv_overall_footer.html -->